import { getEvn } from '@/utils/h5/handleEvn'
import * as auth from '@/utils/auth.js'
export default {
  install(Vue) {
    Vue.mixin({
      computed: {
        userInfo() {
          return auth.getLocUserInfo()
        },
        ticketPriceUnit() {
          return auth.getLocBaseSet().ticketPriceUnit || '元'
        },
        // 活动id
        activityId() {
          return this.$route.query.activityId || ''
        },
        isEfz() {
          return getEvn() === 'efz'
        }
      }
    })
  }
}
